package cn.iocoder.yudao.module.javainfo.controller.admin.financialflow.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.math.BigDecimal;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import cn.idev.excel.annotation.*;

@Schema(description = "管理后台 - 资金流水 Response VO")
@Data
@ExcelIgnoreUnannotated
public class FinancialFlowRespVO {

    @Schema(description = "流水ID（主键）", requiredMode = Schema.RequiredMode.REQUIRED, example = "10902")
    @ExcelProperty("流水ID（主键）")
    private Long flowId;

    @Schema(description = "用户ID（关联用户表）", requiredMode = Schema.RequiredMode.REQUIRED, example = "1317")
    @ExcelProperty("用户ID（关联用户表）")
    private Long userId;

    @Schema(description = "宠物ID（关联宠物表，可为空）", example = "39")
    @ExcelProperty("宠物ID（关联宠物表，可为空）")
    private Long petId;

    @Schema(description = "订单号（业务唯一标识）", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("订单号（业务唯一标识）")
    private String orderNumber;

    @Schema(description = "金额类型（消费/充值）", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("金额类型（消费/充值）")
    private String amountType;

    @Schema(description = "交易渠道", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("交易渠道")
    private String transactionChannel;

    @Schema(description = "金额（单位：分）", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("金额（单位：分）")
    private Long amount;

    @Schema(description = "变动后余额", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("变动后余额")
    private Long balanceAfter;

    @Schema(description = "折扣率（0-1之间的小数，如0.8表示8折）", example = "0.8")
    @ExcelProperty("折扣率")
    private BigDecimal discount;

    @Schema(description = "满赠金额（单位：分）", example = "50")
    @ExcelProperty("满赠金额")
    private Long bonusAmount;

    @Schema(description = "业务类型（如：PET_FOOD/MEDICAL/SERVICE）", example = "2")
    @ExcelProperty("业务类型（如：PET_FOOD/MEDICAL/SERVICE）")
    private String businessType;

    @Schema(description = "关联业务ID（如订单ID、服务ID等）", example = "8387")
    @ExcelProperty("关联业务ID（如订单ID、服务ID等）")
    private Long relatedId;

    @Schema(description = "备注信息", example = "随便")
    @ExcelProperty("备注信息")
    private String remark;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}